home *** CD-ROM | disk | FTP | other *** search
/ Ian & Stuart's Australian Mac 1 / Ian and Stuart's One (Australia).iso / Australasian Legends / Commercial / Rainbow Hill / MacDOS™ 2.0.0 / batches / movedir.bat < prev    next >
DOS Batch File  |  1994-06-30  |  507b  |  18 lines

  1. @echo off
  2. !  movedir.bat    Batch file to move a folder to another folder
  3. !
  4. !  movedir name [dest]
  5. !
  6. !  where 'name' is the folder to be cmoved and 'dest' is the folder which
  7. !  shall contain 'name'. Both names can be preceded by paths and volume IDs.
  8. !  If 'dest' is missing, the current directory is used as destination.
  9. !
  10. !  movedir.bat calls copydir and deldir
  11. !
  12. !  Copyright © 1994 by Rainbow Hill Pty Ltd. All rights reserved.
  13. !
  14.  
  15.     set doserr=0
  16.     call copydir "%1" "%2"
  17.     if %doserr% == 0 deldir "%1"
  18.